/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package gps.decoder;

/**
 *
 * @author romulogalindo
 */
public class DecoderHelper {

    public static int EV603 = 1;
    public static int GT06N = 2;
    public static int FM1200 = 3;
    public static int VT310 = 4;
    public static int P1T = 5;

    public static Decoder getDecoder(int decoder_type) {
        switch (decoder_type) {
            case 1:
                return new Ev603();
            case 2:
                return new GT06N();
            case 3:
                return new FM1200();
            case 4:
                return new VT310();
            case 5:
                return new P1T();
        }
        return null;

    }

    public static String getDecoderName(int decoder_code) {
        switch (decoder_code) {
            case 1:
                return "EV603";
            case 2:
                return "GT06N";
            case 3:
                return "FM1200";
            case 4:
                return "VT310";
            case 5:
                return "P1T";
        }
        return null;
    }
}
